import java.math.*;

import edu.umd.cs.findbugs.annotations.SuppressWarnings;

/*Error - FindBugs
 * 
 * This code produces a BigDecimal error because it is creating the exact double .1 but instead replacing it with a truncated version
 * Also there is a "dead store" to x because it is 
 * 
 */

@SuppressWarnings("DLS_DEAD_LOCAL_STORE")
public class DMI_BIGDECIMAL_CONSTRUCTED_FROM_DOUBLE {

	public static void main(String[] args) {
		double d = .1;
		
		BigDecimal x = new BigDecimal(d);
		d++;
		System.out.println(d);
	}

}
